package com.springboot.bean;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Component;

/************************************************************************
 *
 *    Copyright  Copyright 2021 Google Inc.
 *    File Name: Boss
 *    Description: 描述
 *
 *    Version: V1.0
 *    Author: Fuc
 *    Create Time: 2021-01-13
 *
 *************************************************************************/

@Profile(value = {"prod", "default"})
@Component
@ConfigurationProperties("person")
@Data
public class Boss implements Person {
  @Override
  public String getName() {
    return null;
  }

  @Override
  public Integer getAge() {
    return null;
  }
}
